<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="UTF-8"/>
<!--页面上的头部的公共部分 -->
<div th:fragment="html_header">
    <!-- jQuery,data  -->
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{{path}/istyle/js/common.js(path=${application.basePath}) }" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{{path}/istyle/js/data.js(path=${application.basePath}) }" type="text/javascript" charset="utf-8"></script>

    <!-- layui -->
    <script th:src="@{{path}/lib/layui-last/layui/layui.js(path=${application.resource}) }" type="text/javascript" charset="utf-8"></script>
    <link th:href="@{{path}/lib/layui-last/layui/css/layui.css(path=${application.resource}) }" rel="stylesheet" type="text/css"/>

    <link rel="stylesheet" th:href="@{{path}/istyle/css/style.css(path=${application.basePath}) }"/>

    <input type="hidden" th:value="${application.basePath}" id="basePath"/>
    <input type="hidden" th:value="${application.defaultPageSize}" id="defaultPageSize"/>
    <input type="hidden" th:value="${application.pageReplace}" id="pageReplace"/>
    <script>
        window.basePath = $("#basePath").val();// 项目路径
        window.defaultPageSize = $("#defaultPageSize").val(); // 默认分页大小
        //<!--/*
        /**
         * 页面替换标识符 , 默认  ~
         *  /web/page/aaa~bbb~ccc_list
         *  /web/page/aaa/bbb/ccc_list
         */   //*/-->
        window.pageReplace = $("#pageReplace").val();
        //        layui.config({
        //            base: basePath + '/istyle/layui_module/'
        //        });
        layui.extend({
            web: '{/}' + basePath + '/istyle/layui_module/web'
            , user: '{/}' + basePath + '/istyle/layui_module/user'
            , verify: '{/}' + basePath + '/istyle/layui_module/verify'
        })
    </script>
</div>
<!--页面尾部的公共部分-->
<div th:fragment="html_footer">
    <script th:src="@{{path}/istyle/js/footer.js(path=${application.basePath}) }" type="text/javascript" charset="utf-8"></script>
</div>

<div th:fragment="tree">
    <!-- zTree  -->
    <link rel="stylesheet" th:href="@{{path}/lib/zTree/demo.css(path=${application.resource})}" type="text/css">
    <link rel="stylesheet" th:href="@{{path}/lib/zTree/zTreeStyle/zTreeStyle.css(path=${application.resource})}" type="text/css">

    <script type="text/javascript" th:src="@{{path}/lib/zTree/jquery.ztree.core-3.5.js(path=${application.resource})}"></script>
    <script type="text/javascript" th:src="@{{path}/lib/zTree/jquery.ztree.excheck-3.5.js(path=${application.resource})}"></script>

</div>